<?php

class Application_Model_DbTable_Contents extends Zend_Db_Table_Abstract
{

    protected $_name = 'contents';
	
    public function getAllContents(){
    	
		return $this->fetchAll();
		
	}
	
	public function getContents($username){
		$select = $this->select()->where("WHERE user_account_id != ?",$username);
		return $this->fetchAll($select);
		
		
	}
	
	public function getContentsFromMsgId($msgid){
		
		$select = $this->select()->where("WHERE msgid != ?",$msgid);
		return $this->fetchAll($select);
		
		
	
	}
}

